package io.xccit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.xccit.pojo.collect.Collect;
import io.xccit.result.AjaxResult;

/**
 * @author CH_ywx
 * @date 2023-09-14
 * @description
 */
public interface ICollectService extends IService<Collect> {

    AjaxResult saveCollect(Collect collect);

    /**
     * 根据userId获取收藏
     * @param userId
     * @return
     */
    AjaxResult getCollectList(Integer userId);

    /**
     * 删除收藏
     * @param collect
     * @return
     */
    AjaxResult removeCollect(Collect collect);
}
